$(function () {
    topicDetail()
    topiclist()
})

function topicDetail() {
    $.ajax({
        method: 'GET',
        url: "/api/topic/list" ,
        data: {
            id:294
        },
        success: function (res) {
            var htmlStr = template('tpl-table',res.data)
            $('#tupian').html(htmlStr)
        }
    })
}

function topiclist() {
    $.ajax({
        method: "GET",
        url: "/api/comment/list",
        data: {
            valueId:314,
            typeId: 1,
            page: 1,
            size: 5,
            showType:0
        },
        success: function (res) {
            var htmlStr = template('tpl-liuyan',res.data)
            $('#liuyan').html(htmlStr)
            console.log(res);
        }
        
    })
}